<template>
    <div>
        <h1>{{ count }}</h1>
        <button v-on:click="count++">按钮</button>
        <button @click="count++">按钮</button>
        <button @click="changeCount">按钮</button>

        <a v-bind:href="url">跳转</a>
    </div>
</template>

<script setup>
import { ref } from 'vue';
const count = ref(100)

function changeCount(){
    console.log(count.value);
    count.value++
}
const url = ref("http://baidu.com")

</script>

<style scoped>

</style>